<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%
	QuikHashMap reqHm = RequestManager.getRequest(request);
	MemberProc member = new MemberProc();
	HashMap hm = new HashMap();
	
	hm = member.getUserInfo(reqHm.get("MEMBER_SEQ").toString(), session.getAttribute("SESSION_MEMBER_GROUPSEQ").toString());
	
	ArrayList lt = null;
	lt = member.getUserArticle(reqHm.get("MEMBER_SEQ").toString(), null, null);

%>

<%@page import="quik.member.MemberProc"%>

<%@page import="comm.util.QuikHashMap"%>
<%@page import="java.util.HashMap"%>


<%@page import="comm.util.RequestManager"%>

<%@page import="java.util.ArrayList"%>
<%@page import="comm.util.CommUtil"%>
<%@page import="quik.data.DataProc"%><h3><%=hm.get("MEMBER_NICK")%>님 정보</h3>
<div id="content-top"></div>
		<div id="lista" class="box">
<ul>
<li>
	<table border="0" cellpadding="8" cellspacing="10">
		<tr align="center">
			<td colspan="2"><img src="<%=request.getContextPath()%>/data/userImage/<%=hm.get("MEMBER_SEQ")%>/<%=hm.get("MEMBER_IMG")%>" width="80" /></td>
		</tr>
		<tr align="center">
			<td>별명</td><td><%=hm.get("MEMBER_NICK")%></td>
		</tr>
		<tr align="center">
			<td>E-Mail</td><td><%=hm.get("MEMBER_EMAIL")%></td>
		</tr>
		<tr align="center">
			<td>부서</td><td><%=hm.get("GROUP_NAME")%></td><BR/>
		</tr>
	</table>
</li>
</ul>
</div>
<div id="content-bottom"></div>

<h3>최근 <%=hm.get("MEMBER_NICK")%>님의 메세지</h3>
<div>
	<% for(int i = 0; i<lt.size();i++){
		HashMap inHm = new HashMap();
		inHm = (HashMap)lt.get(i);
	%>
	
	<div id="content-top"></div>
		<div id="lista" class="box">
			<ul>
				<li>
					<div><img width="<%=CommUtil.IMG_WIDTH %>" height="<%=CommUtil.IMG_HEIGHT %>" src="./data/userImage/<%=inHm.get("MEMBER_SEQ")%>/<%=inHm.get("MEMBER_IMG")%>"/></div>
				</li>
				<li><%=inHm.get("ARTICLE_CONTENT")%></li>
				<li><%=inHm.get("ARTICLE_REGDATE")%></li>		
			</ul>
		</div>
		<div id="content-bottom"></div>
		<%}	%>
</div>


<%
	DataProc data = new DataProc();	
	lt = data.getDataListByMemberSeq(hm.get("MEMBER_SEQ").toString());
	int cntLt = 0;
	if(lt!=null)
		cntLt = lt.size();
%>    

<h3><%=hm.get("MEMBER_NICK")%>님의  자료</h3>
<div>
	<div><%=cntLt%> 개의 자료가 있습니다.</div>
	
		<%for(int i = 0; i<cntLt;i++){
			QuikHashMap dhm = (QuikHashMap)lt.get(i);
		%>
		<div id="content-top"></div>
		<div id="lista" class="box">
		<div><a href="./data/groupData/<%=dhm.get("GROUP_SEQ")%>/<%=dhm.get("FILE")%>" target="_blank"><%=dhm.get("ORIGIN_FILE")%></a></div>
		<%=dhm.get("MEMBER_NICK")%>
		<div><a href="./article/<%=dhm.get("ARTICLE_SEQ")%>">자세히보기</a></div>
			</div>
		<div id="content-bottom"></div>
		<%} %>
</div>
